
public class Question
{

	public Question(String title, String text, String answer)
	{
		this.title = title;
		this.text = text;
		this.setAnswer(answer);
	}
	
	public void print()
	{
		System.out.println("title - " + title);
		System.out.println("text - " + text);
		System.out.println("answer - " + answer);
	}
	
	public String getTitle()
	{
		return title;
	}
	
	public void setTitle(String title)
	{
		this.title = title;
	}
	
	public String getText()
	{
		return text;
	}
	public void setText(String text)
	{
		this.text = text;
	}
	
	public String getAnswer()
	{
		return answer;
	}

	public void setAnswer(String answer)
	{
		this.answer = answer;
	}

	private String title, text, answer;
}
